//
//  MyCollectionViewCell.m
//  GiftNote
//
//  Created by lanou3g on 15/8/11.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.artiImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 180, 180)];
        _artiImageView.backgroundColor = [UIColor orangeColor];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 190, 180, 30)];
        _nameLabel.backgroundColor = [UIColor orangeColor];
        
        self.capacityLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 225, 180, 30)];
        _capacityLabel.backgroundColor = [UIColor orangeColor];
        
        self.moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 260, 100, 30)];
        _moneyLabel.backgroundColor = [UIColor orangeColor];
        
        self.likeLabel = [[UILabel alloc] initWithFrame:CGRectMake(180 - 60, 260, 60, 30)];
        _likeLabel.backgroundColor = [UIColor orangeColor];
        
        [self.contentView addSubview:_artiImageView];
        [self.contentView addSubview:_nameLabel];
        [self.contentView addSubview:_capacityLabel];
        [self.contentView addSubview:_moneyLabel];
        [self.contentView addSubview:_likeLabel];
        [self.contentView addSubview:_artiImageView];
 
    }
    return self;
}
@end
